<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Running Man</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" type="text/css"  rel="stylesheet" />
<script type="text/javascript" src="js/running_man.js" ></script>
</head>
<body>
<div id="running_bg"></div>

<script type="text/javascript">

var players = [];
for(var i = 0; i < 1; i++){
	players.push({id:i+1, count:0});
}

var runningMan = new RunningMan({
	wrapperId:"running_bg",
	playerImages:["images/1.png", "images/2.png", "images/3.png"],
	players:players,
	playerWidth:200,
	playerHeight:200
});

/*setInterval(function(){
	for(var i=0; i< players.length; i++){
		players[i]["count"] += Math.ceil(Math.random() * 10);
		players.sort(function(a, b){
			return a.count > b.count ? -1 : 1;
		});
	}
	runningMan.setPlayers(players);
},50);*/



</script>
</body>
</html>